{{ template "header"   . }}
{{ template "rankings" . }}

<main id=two-pane>
    {{ template "nav" . }}

    <table class="nowrap-second sticky">
        <thead>
            <tr>
                <th>#
                <th>Golfer
                <th class="right wide" title="Unicorns (uncontested solves)">🦄
                <th class="right wide" title="Diamonds (uncontested gold medals)">💎
                <th class=right        title="Gold medals">🥇
                <th class=right        title="Silver medals">🥈
                <th class=right        title="Bronze medals">🥉
        <tbody>
        {{ $name := "" }}
        {{ with .Golfer }}{{ $name = .Name }}{{ end }}

        {{ range .Data.Rows }}
            <tr {{ if eq $name .Name }} class=me {{ end }}>
                <td>{{ comma .Rank }}<sup>{{ ord .Rank }}</sup>
                <td>{{ template "golfer-link" . }}
                <td class="right wide">{{ comma .Unicorn }}
                <td class="right wide">{{ comma .Diamond }}
                <td class=right       >{{ comma .Gold    }}
                <td class=right       >{{ comma .Silver  }}
                <td class=right       >{{ comma .Bronze  }}
        {{ end }}
    </table>

    {{ template "pagination" .Data.Pager }}
</main>

{{ template "footer" }}
